home *** CD-ROM | disk | FTP | other *** search
- FSimpleButton = function()
- {
- this.init();
- };
- FSimpleButton.prototype = new MovieClip();
- FSimpleButton.prototype.init = function()
- {
- this.caption_txt.text = this.captionText;
- this.caption_txt.textColor = this.captionColor;
- this.useHandCursor = this.showHand;
- this.tabEnabled = false;
- this.onRollOut = this.myRollOut;
- this.onRollOver = this.myRollOver;
- this.onPress = this.myPress;
- this.onRelease = this.myRelease;
- this.onDragOut = this.myDragOut;
- this.onDragOver = this.myDragOver;
- this.onReleaseOutside = this.myReleaseOutside;
- };
- FSimpleButton.prototype.myRollOut = function()
- {
- this._parent[this.statusVar] = _global.oldStatusText;
- };
- FSimpleButton.prototype.myRollOver = function()
- {
- _global.oldStatusText = this._parent[this.statusVar];
- this._parent[this.statusVar] = this.statusText;
- };
- FSimpleButton.prototype.myPress = function()
- {
- };
- FSimpleButton.prototype.myRelease = function()
- {
- this._parent[this.clickHandler](this);
- };
- FSimpleButton.prototype.myDragOut = function()
- {
- this.gotoAndStop("_up");
- };
- FSimpleButton.prototype.myDragOver = function()
- {
- };
- FSimpleButton.prototype.myReleaseOutside = function()
- {
- };
- FSimpleButton.prototype.disable = function()
- {
- this.caption_txt.textColor = this.captionDisabledColor;
- this.gotoAndStop("disabled");
- this.enabled = false;
- };
- FSimpleButton.prototype.enable = function()
- {
- this.enabled = true;
- this.gotoAndStop("_up");
- this.caption_txt.textColor = this.captionColor;
- };
- FSimpleButton.prototype.isEnabled = function()
- {
- return this.enabled;
- };
- Object.registerClass("FSimpleButton",FSimpleButton);
-